﻿#include<iostream>
using namespace std;

int main()
{
	int T;
	cin >> T;
	while (T--)
	{
		string s;
		cin >> s;
		if (s.find("114514") != s.npos)
		{
			cout << "AAAAAA" << endl;
		}
		else
		{
			cout << "Abuchulaile" << endl;
		}
	}
}